From: Florian Müllner Date: Tue, 12 May 2015 19:27:59 +0000 (+0200) Subject: messageTray: Emit signal when notifications are enabled/disabled X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~1351 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=0aa29daa7292e1f385f460b50ff05e6f6df7b77e;p=gnome-shell.git messageTray: Emit signal when notifications are enabled/disabled Since the introduction of per-source notification policy in commit 098bd4509ba0, the NotificationPolicy::enable-changed signal has been used to track the 'enable' setting. However as we never actually emitted that signal, this never worked without a restart - oops. https://bugzilla.gnome.org/show_bug.cgi?id=749279 --- diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js index 4a949d4b0..e0d63448f 100644 --- a/js/ui/messageTray.js +++ b/js/ui/messageTray.js @@ -258,6 +258,8 @@ const NotificationApplicationPolicy = new Lang.Class({ _changed: function(settings, key) { this.emit('policy-changed', key); + if (key == 'enable') + this.emit('enable-changed'); }, _canonicalizeId: function(id) {